import React, { useState } from "react"
import style from './index.module.css'
import TestImg from '@/assets/test.jpg'

function Home(){
    const [count, setCount] = useState(0)
    const onClick = () => {
        setCount((c) => c + 2)
    }
    return <div>
        <h1>HOME</h1>
        <div>{count}</div>
        <div style={{width: 300}} className={style.myimg}></div>
        <img style={{width: 300}} src={TestImg} alt="" />
        <button className={style.customButton} onClick={onClick} >click+1</button>
    </div>
}

export default Home